.class Lcom/xingbook/park/activity/ay;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/RegAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/ay;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    const/4 v4, 0x0

    const/4 v7, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/ay;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lcom/xingbook/park/activity/RegAct;

    iget v0, p1, Landroid/os/Message;->what:I

    const/16 v1, 0xc8

    if-ne v0, v1, :cond_3

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v2, v0

    check-cast v2, Lcom/xingbook/park/e/c;

    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->a()I

    move-result v0

    if-nez v0, :cond_2

    const/4 v0, 0x1

    sput-boolean v0, Lcom/xingbook/c/n;->d:Z

    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v0, ""

    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {v6}, Lcom/xingbook/park/activity/RegAct;->a(Lcom/xingbook/park/activity/RegAct;)Lcom/xingbook/ui/af;

    move-result-object v0

    const-string v1, "\u6ce8\u518c\u6210\u529f"

    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const-string v3, "\u77e5\u9053\u4e86"

    new-instance v5, Lcom/xingbook/park/activity/az;

    invoke-direct {v5, p0, v6}, Lcom/xingbook/park/activity/az;-><init>(Lcom/xingbook/park/activity/ay;Lcom/xingbook/park/activity/RegAct;)V

    move-object v6, v4

    move v8, v7

    invoke-virtual/range {v0 .. v8}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZ)V

    :goto_0
    return-void

    :cond_0
    invoke-static {v6}, Lcom/xingbook/park/activity/RegAct;->b(Lcom/xingbook/park/activity/RegAct;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/AccountManagerAct;

    invoke-direct {v0, v6, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v6, v0}, Lcom/xingbook/park/activity/RegAct;->startActivity(Landroid/content/Intent;)V

    :cond_1
    invoke-virtual {v6}, Lcom/xingbook/park/activity/RegAct;->finish()V

    goto :goto_0

    :cond_2
    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_3
    const-string v0, "\u65e0\u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v6, v0, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
